added delete function
editing works now too