gallery controller completed [for now]