add delete method, fix url issue