added delete current record functionality