add condition in query=homepage