fix duplicate event listeners

they were duplicated if you navigated from topic to topic