Add dynamic title and helper function