added lending records view, template, url, and fixed lending record model