added tab-control for multiple windows
improved multi-tabbing