Revert "delete action is not working inside modal"

This reverts commit 9a6d0a04b91b8def1dd2ed592d3075a68dadb362.