change from post to put when saving contents