added click function to final image