for auto hide mouse