update course index method