fixed bug with tab buttons