remove old message when route changed