add function for edit account