change gate_function_UI