Refactored code, and added separate Topic and Idea pages