took out on click function