changed the interface for PGC so it fits in one page, got the query for gallery to work