add home page function