use jquery for the events