Unable to create a new button

Hello, I try to add a new button in a new palettes, but everytime I create it, it first appears as “Untitled” in the list, I can modify it, then add a command or script, but if I change its name or/and move it to my New Palette, it disappears from the list and is not yet accessible for any modification…

New help…thanks