fixed mouse click function on text box