add edit function.