Added methos for attaching generic event listeners