Logic for showing borrow/return buttons.