Hello,
Ive attached screen shots of whats happening:
1) The tabs are in the correct order:

2) They paint correctly:

3) But then after a while they just rearrange by themselves:

4) And obviously paint incorrectly:

This is really annoying as I have to keep amending this code over and over again