implement delegate method to setHidden animation