Update the layout for iOS 7 and iOS 8