updated the app with delete functionality