add unique key prop to child in an array for dialog component

add unique key prop to child in an array for dialog component