add prompt and loading dialog