refactor create/edit/delete modals and remove directives.js