Auto remove the element that removed from DOM