Fairly major reorganisation of classes. Now every tab has its own class.
I should probably create an interface for this.