refs now work in create view and edit view