generalize toggling editing states on user show page