duplicate main window fixed
Step 2 done