Prepared mainwindow for Hu algorithm