39a Added pagination to topics and posts and fixed some prior errors