fix up tablet mode stuff now that all works-Thanks to Mike Wilson