Moved tab functionality into tabs.py
Implemented the tabs' close button functionality