refactor tablet tweaks