Added loading dialog box