get value from selection in tab 2 and 3