added messagesModel, should work on controller, that is now only added