fix orientation change state and timers