added libraries and library buttons