Created a gallery controller