added click funcitonality to graphic