layout optimizations for mobile devices