working on the edit window