added needed functionality for library page