delete elements even when tab not in focus