Work on refdata and edit