changed photomanageController with a delete button