messages controller and views