modelwidget: canUndoChanged() firing after mouseReleaseEvent was fixed
mainwindow: undo listener is now added in setModelWidget, now in constructor only