added optimized api of library menu