Created the basic functionality for an transparent loading dialog.