modified course index template to show registered students