Added delegate methods, improved show/hide animations