Add Ref Number automatically

you can check what @lubos said in the below post