add multipage functionality to navigation