adds delete functionality