fix urls for gallery controller