Added a pretty loading animation with a dialog factory.