add ob_start to fix header cannot be modified issue