Implemented polling on frontend