Move current page check to head