Removed currentPage parameter in build menu from pages