updated delete method to not make a html call to update array