re-added ob_end_flush() after sending headers