changed delete tree from GET to POST method