run renderLibrary method on load