Delete and Rename gallery functionality