added edit and delete to the model