add gallery controller