fix grade views, add grade edit