fixed delete button which produced another problem to fix