Primitive mechanism for switching between fragments