sends exported code in a popup window, looks terrible