Editing an application Close Window