refactored loan model, added button selector to choose downpayment type
added helpers and sanitized numeric inputs
formatting and added popover functionality