Move rotation stuff to RotationFragment and send rotation information only if RotationFragment is visible