Layout optimization + optimization for ipad and iphone