added renderHomeView function