resolve 'git status! depreciated' issue
simplify tab switching code