deleting and editing text funciton is added