add condition for homepage