changed the form of getTopicsByCategory to take pageNumber and not a topicId to start on