fixd missing ob_start and rm'd an unnecessary function