Since you hide the main window when you show the child window, I wonder if it wouldn't be less consusing for the user if you showed the contents for both in the same physical window. So you'd hide the contents of the main window when you show the contents of the child window, and vice versa.