add command and controller