basic checkout/checkin function and views