new html and fixes for loan

Signed-off-by: Yasen Yankov <iasen.iankov@gmail.com>