chance in document ui