add stop button, save app state to file