fixes bug that displays repo grid multiple times if button is clicked twice in quick succession