adds iframe for testing PIO and adds contract/expand behaviour to cards