fixed error when open multiple windows, now highlights current window