Toggling between showing and editing states, and accepting states