updated quiz controller