Added code for the second tab.  Should be functional since it the
code is similar to the first tab.