Implemented click functionality