html tidy-up for tablets