replaced Handler with timertask, should prevent crashes