fix rendering of tab pane