add a new document then edit it. todo, work in progress