added caching of grades, offline grade viewing