messages controller added and spec for it