clicking logic
first version