implemented tab UI