a button with multiple functions.

You also need to think about how you will let the user know which state the system is in.

...R