added changes from Dans repo
got my delete button working