Now you know why the gasket blew out... probably want new bolts to attach the heads..
you will probably need to at least disconnect the header from the exaust pipe, you may have to remove it entirely..