adding generate button