added logging output to view