run addToLibrary method to append values from input