programmatically selecting tabs