adding back the logic for choosing initial tab based on the population