added onclick using jQuery's on method