added more visualization code for topics