fixes #4183 can not see the tabs after use the search field in roles

Fixed the issue apushed the code for review, please check it.