Setting up home page handling and api integration.

Setting up home page handling and api integration.