Added Dialog insert method