Improved animation for dialogs