handle mouse down event