after submit ,hide the window