fix tab index ordering