Added basic layout support for mobile devices.