ported cost editor page to new version