working directive crud, create, read, update, delete