turning on auto hide