Hopefully fixed the duplicate tab problem. Also fixing a css issue