Transfer parameter from sub window to main window