fixing delete action caused by bootstrap modal box