implemented click logging