Fix ipad layout problem