Cx-9 Window/Key Issue

So I got a 2011 CX-9 from a dealership a few weeks ago. Everything had been going great until a few days ago. When I unlocked the car (clicked the button once) and got in, my front windows and sunroof opened on their own. Well today, every time I get out the front windows and sunroof open as soon as I close the door and it sounds like it’s locking on its own. I make sure I haven’t clicked any buttons on the fob. It’s driving me crazy because I don’t know how to make it stop. I end up having to get back in and turn the key to roll the windows up. Does anybody have any idea as to what is going on?
Some cars had a feature where when you press a certain combination of button on the key fob all the window and sunroof would open to cool the car down. If that feature is avaible on the cx-9 then i would check for a faulty key fob, maybe some buttons failed and are permanently stuck. Check to see if the second keyfob does the same.