updating tab select behavior