Update library.php

pages and button