Toggling between showing and editing states
Added behavior to accept edits