need to move deleterecord from view component
updated reset controller