added different layout for iOS devices and other devices