figuring out how to create a navigation based on the contents of a directory