added galleries controller to repository