Added getAllTopics to index.php