fixing main idle page query