now shows/hides the list when appropriate