Made quit button actually work