add basic code to controllers