Hooks up rotation changing to the UI.