toggle between edit and show states on double-click