Set title according to which type it is