Added functionality to move between frames of the document.