improves tab handling and history