added delete and add functionality