updtaed for home page to load dynamically