implemented next and previous for question traversal