Generate home controller and edit flash messages