add option control logic