edited the function that renders the next question