fixed a few tablet bugs