Extract most of the sidebar frontend code
Load the whole library at once
Add library filtering