renamed post method to update