whitespace wrapping and mobile display optimizations