"I do have this within the insert function which enables the list to be generated correctly except for the button." . . . .