adds delete data funcionality