Added conditional navigation title assignment.