made event handling for edit-related actions more fine-grained