creating dynamic home page