improvements in CSS and logic for titles