template for table nav, needs more work but i'm stuck