add code controller public