isCurrentPage is page dependent