replace long polling solution with pagebug