read in button names and children from props