fix tabbed mdi area with add tab button

close inactive tab