added exit button
added persistent settings class