added delete device feature