Added helper directives for edit-mode-on and edit-mode-off handlers