added click functionality to item