tablet: improved performance. TODO: rewrite as three separate windows