read the library before displaying the gui;