changes for edit and delete rec - not working yet
Fix for rec