added index home page and view post page