set the id button for generate the script