delegate for library selection in ViewController