Making tab items generic in main window.