Changed on click function

still seems to work?...