simulation of clicking event