quiz controller implementation