Changed logic of clicking.