[MINOR] Only show the event buttons if they apply to the current state