Updated title funtion