function deleteinactivelender
and popup on failed transaction