trying to fix ipad resize bug