now getting messages only inside the controller.