Fix base template for better tablet display compatibility