Add title rendering function