Library page commit 4

library page with tree and pdf switch working