tab_history: init function