move some code from mainwindow.cpp to node for IOMin and IOMax changed