added directives for edit event