add hiding event