adds ability to create and edit galleries