Switch all event handlers to .on()