fixed scoping issue when creating navigation logic on one_page_view