dynamically changes the number of questions