added automatic rendering of questions