add generate button for barCode