added ajax calls to get questions