added on click function