Add update and edit methods for galleries