updated messages controller and serializer