fix grade badge not updating for grade buttons