refactor a little code
add scheduledManager updateTask
Merge pull request #565 from jialinsun/master

refactor a little code