adding other types of event listeners