add unique key prop to child in an array for dialog component to get rid of the annoying react-warning-keys