Made switch to appropriate tag names/attributes, ID and CLASS switched around for wrapper and inner frame