changed quit() --> stop() and removed teardown; connected ui buttons