Put the old filter back in.
If the problem still exists, then it is not the filter.
It's been said that smart men know their limitations.Maybe you should hire a mechanic for your needs, you don't seem "mechanically inclined" at all.
sigh... Year, Make, model, and engine?
Check the air box VERY well. Many have sensors and/or emission lines/hoses running to them.
Air filter has nothing to do with it. You could run a new air filter. An old air filter. Hell, shove a stray cat in there. It's not going to affect how the car idles.
You either knocked a hose loose that is behind the MAF (allowing unmetered air to enter the throttle) or the MAF came unplugged. Those are about your only options, barring an EXTREMELY overcomplicated air filter installed that required more than just pushing the intake tube to the side so you could get the filters in/out.
Was possibly just re-learning it's idle?
opening the air box would make the car relearn its idle?