fixing the gallery controller