refactored topics index page