prevent reposList if widget no focused
refactoring