got edit function working