Added code for dynamic home page.