borrow button functionality