fixes #4161 Tag window in the tag manager should be updated

Fixed the issue and pushed the code for review, please check it.