improve tab manager