fix error in add questions page, sort questions by subject, optimize randomization of questions