make the doc library state toggling functions available anywhere the state is