fixed tags page paging bug and cleanup