prepare Dialog to add