refined search function to return 'page groups'