Add dynamic title functionality