layout fixes for iOS 6/7