added methods for updating gallery entries
refactored controller to have a #set_gallery_entry method