Allow to add multiple instances of tab queries - the infrastructure and loading
Query tabs addition, deleting and sorting
Refactoring