first try at fixing broken delete button