fixing animations on dialogs