connects users to gallery view. iterates over users to populate template boxes. adds links to user show page