Add a buffer navigation function