Optimized badge widget in lessons