Add #library-template and add render function to LibraryView