Set up thoughts and Labrary dialog