Some improvements to tab UI