Changed scroll tab logic. fixed problem with tab bar