Setting a state and highlighting a selected button based on said state - an example you will face often when developing your applications!
Pick a mode: