fixed timing issues for #388 which meant it wasn't always navigating to the new editor view after creating the new document