reorganized head to display styles properly