changed jquery event handlers