add/remove "editing" class on popover show/hide