fixed layout bug on ipad