set default tab to index