Upate code controller