set up messages_controller and related files