added PUT request for relationship when handling messages