added regenerate button