made window.send_to_editor play nicely