refactored loading dialog manager to take a string parameter for the title of the loading dialog