removing words from sidebar when new word group is selected