added basic event listeners