added grade editing functionality