made update and delete more RESTful