I think it would be cleaner to just call classList.remove('hidden') here.  Right now you're calling a function and calling the contains() method.  Its harmless to call remove on a class that is already removed, and it would simplify your code here and below to remove the displayView function.