added loop to app and made delete definition, need to finish delete.