Code refactoring
Loans page implemented