adds nav pages and their js controllers