delete action is not working inside modal