added message controller and model