fixed mistakes and added close button to class edit form