Adding multitab history based on last opened rule