make tabs generate hide and hidden events