fix delete button, closes #187