adding delete and update functionality to view fragment