edit windows_controller add def update