fix tab ordering. Closes #4