toggling btw show and edit mode