add the loading dialog