grouping method by visited together pages has been added