changed the homeView to a pure controller