moved event listeners to file eventListeners.js