changed tabs and altered when error message appears