working GUI with native close button