remove fields in viewonly mode