Sending Authorization Code to main window