added generate and copy button