update scene manager in the loop