Add borrow button to book.php . Change redirect links from borrowDocument.php and lendDocument.php .