Set up framework to switch library based on shelf clicked