animations for dialog box