Refactored customer edit code. Fixes #120