Clicking add class on below screen would cause the program to crash 