add command and action