don't process user input when GUI is hidden