Implemented store/restore state for previous/next buttons.
Fix node highlighting. Partial fix for #3.