Refactored and corrected lending and return view.