fixed routing bug in new document creation