update quiz data, refactor quiz controller