Added snippets to page when clicking a topic