Set tab title correctly