move some code around, so we can two different UI's upon rotation.