Fixed the GUI updating in section_grades,
restructured the grade handling