Manage the windows of the "add pin" frame by ID and no more by global variable
To make the grid build without gap after a deletion