nifty hack to make sure we don't run into race
conditions with the prompt and the navigation