changed polling structure
polling ajax