Added animation for dialog