debugging why remove button is not working