add functionality of event handlers