Delete button works without refreshing the page