working on library tab, minor fixes