It is possible I'm doing something differently than you when I add the buttons too. What exactly are you clicking on and what are you using to add the code. If I can reproduce it, then I can usually fix it, but so far I haven't been able to see the issue.
I've done a screenshot of the process but can't send here as attachment for some reason