updated edit directives
new directive for edit button