added item click functionality