add create and delete method for models