Added dialog accept option.