Added methods to quit the application (buttons are to be added soon).