adding flash auto hide