dynamically updating student graph