Refactored the loading of the boxes, made it more simple with a twig extension