hooked up edit modal with directive