Added edit view and basic frontend. Need to modify frontend to enable editing refs too