added event handlers for divs