Refactored dynamic title tags