replace mode controller