fix chart resizing and nested tab visibility problems