added select tab method