Put dialog into array