added auto hide flag