Toggle between show and edit state