Add a reference to the edit window when calling