added ability to load tab on page load