Communication between mainwindow and core
established by using signals/slot