added on click method