added touch control for tabs