refactored topics page