fix opening multiple window