check out this tutorial.
Changing brake pads on WRX
Did you undo the 14mm bolts on the caliper or the bolts that hold the caliper to the mounting bracket? If you did the ones to the mounting bracket the entire assembly will come off pads and all. You want to do the 14mm bolts that attach the to parts of the caliper.