added filters to the different library views

and some refactoring and other things...