Issue #193: add a summary at bottom of view, refactor code

&nbsp -> &nbsp; (both lines)
Why are you adding a non-breakable whitespace and then a standard whitespace? I think the standard whitespace should be enough