refactoring navbar + edit document in step