adding gallery controller class