You have to bleed your brakes, one by one.
If you don't know how to do it, don't touch it.
You were fine on removing the resevoir cap to press back in the pistons, but usually if you don't take pressure off the line, there should be no bubbles that entered the system.