Add delete and insert functionality