added frame toggle