Added dynamic logic for page titles