edit supplier function