improve history and tab usage