fix the problem with tablet view