dynamically adjust titles