get rid of obsolete codes
fix a bug that a wrong topicName is fetched when clicking on a topic