fixed dynamic selection of tab elements