message controller and service