how do you switch one taxpayer to be the primary

Primary taxpayer died during the year.  How do I make the spouse the primary now.  Still filing MFJ but this affects filing a part year state return.