Fix page button highlighting after refresh