working version of the tabs