tabs were not working after pagination - fixed