-- state machine for menues.