Red Iteration

Also a fix where you could delete the wrong tab by clicking the invisible close icon on an inactive tab