Bug fixes for tabs in html