add condition to actionhomepage