Updated and improved PR -  Update view.html.php #2665

Small improvement of the PR by @andykirk.

Thank you for the work!