Adding support for frame switching

Needs better tests, though for that it'll be better to just switch to testing against UICatalog