factored nav code, but broke index nav. Backing out - will try again later.