created gallery controller