fixed visibility of setState and improved TimerTask in Poller