adapt to iphone 4 and ipad sreen