bug fix: json was presented to user when they clicked on delete