Refactored MessagesController#create and #update action to reflect the new design pattern choosen