Added currentPagePath variable to pages