Added delete text function