This refactor changes two things - position of the modal, as it is moved up by some amount because of using confirm_dialog and also loading spinner of confirm_dialog widget is used.