moved functionality for adding a customer