Block version

I have replaced the logic of the delegated with that of the blocks, to manage the buttons.