moved several items of edit and create into directives