added get next question logic