more tab selection work from url and function