Modified the callback to handle student gradebooks