Added ability for multiple tabs