created messages controller and index view