small fixes

removed a lot of unneed code, set second(middle) tab as default