added ability to quit the application