resolved build up of event listeners between tabs