fixes small bug by removing all message lines on a node-click event