Added dynamic title functionality