using pagehooks to make nav dynamic