generated message controller