refactor
refactor
where to put app->quit
exit from application.exec