fixed edit window creating a new window