CardForm view refactored to form the module pattern.