Refactor layouts#nav