Added some callbacks and a hide delay property to help with CSS animations