frame sizes are compatible with iphone, except toolbars
some hackish attemp to use different constants for ipad and iphone