added gallery controller