Husband upset

Today I found out that my ex’s mom is on life support and the plug is being pulled today. I took my kids up to the hospital so I could say my goodbyes even tho they couldn’t come in the room. I have been the only daughter figure his mom has know. Me n my kids were together 12 yrs before we broke up so naturally I have some sort of bond with his mom. Granted yes my ex is a deadbeat dad and hasn’t seen my children in a year I wanted to see her not him. My husband comes home n gets all bent outta shape yelling saying I shouldn’t have went, why did he call you instead of his gf, oh u must still be in love with him or something. Im continuing explaining that I went there for her n not him! He doesn’t care started saying oh now the kids gonna be confused because he doesn’t know him. Next time tell him when they(my kids) need something. Yes my husband has been there for since my 6yo was 2. He literally does everything my ex is supposed to and more. My husband didn’t even hug me because he said im not touching you after you consoled that man all day. Yes my ex has done alot of terrible things to me and just recently a few months ago called me all type of names on the phone. Would you be upset by this? Im not invalidated his feelings but it’s like damn im grieving too and so is my oldest. He also got upset that my ex gave me a ride to my grandad’s house. Saying I had no business being in the car with that man and he not even doing nothing for you or the kids.

To update I did inform my husband before I left that I was going to the hospital but I could tell he had a attitude before he hung up. My dad said he is being childish and inconsiderate I agree. I did spend the better part of the day with my ex’s’ mom holding her hand and saying goodbye. Thank you for the condolences