tab layout working

still needs to save data when you swipe to a different tab
Merge remote-tracking branch 'origin/tab-layout'