Properly format prepopulate doc