add partial for homepage if and else