modify window.el for create-frame