fix create a new class button and add java script