:new: add auto close to dialo