oops fix a bug with tab click