added click function