hide GUI if requested to do so