improve source viewer tab behavior