Bugfix: create tabs in finally block of main panel