refactored the app controller and added the households controller