bug|fixed tabbar

* new way of selecting and switching tabs