add dialog selection stuff