Allows library to save tab in state.