added delete and adding functionality