fix focus issue with multiple tabs