add better logging to view rendering