added Jquery event handling added