basic quiz controller refactor