add support for selected pages in nav