Generate controller for home page