Lots of refactoring.  Now need to make a change to convert the string to date in the detail controller.