update code controller