adds editing to location and units