Improve constructor logic of mainwindow
Replace boilerplate with eval
Improve method on_closeAction_triggered
Simplify recent menu logic