Fixed display logic in Tab