adds editing/updating feature