Added dynamic title method