added pagination to topics views