change post to put,delete