Changed code to allow for multiple tab divs