Customer update,create refactoring