Added more functionality to the first tab.  Code is untested.