Restructured HomeView class.