moved page reload in gallery to deletePhoto callback