try moving add_tab over here...