Create helper method for dynamic title