added save feature for class edit page"