added messages_controller and initialize to message model