Make layout work with iPad