autoselecting last opened tab