connected new window to the main application (opens when clicked on add button)