improve tablet mode