Added mehods to edit and delete in fragment