Added new tab method, and filled out code for adding a close button on
each tab.

Also added a subclass to handle tab closing