use put method instead post when update