chat controller and service