adding detail gallery controller