Add controller for messages.