adding routes to contact and refactoring code to put route control in better location.