simplifed button state machine