Yes, the solution will be to move the code to the template or use the original block container ;) The ``execute`` is the controller so no view logic should be defined here.