used jquery for click events on controller