made quit button work