move orientation tracking to app