Added parameter elementsFooter to add custom buttons
Possibility to get group from outside the component