add command and front contorller