fixed ui issue

program was exiting completely instead of hiding windows when closing
them