change way to open window