updated the ui for topics. did some small code cleanup.