updated control so trigger and origin reset correctly