implemented a view switcher for the different library views