add selector to programmatically select tab at index