Fixed bug when clicking inside of tabs container but not on tab
Removed unused code