added disable generate button when user clicks it