MainWindow: made it publish a new service on the network when program is started