WIP: Some disgusting hacks to make live insertion of buttons work.