Double buffering to avoid flickering and consistend tab style