Fixes layout for iPad and iPhone rotation