fix ipad layout bug