pep8 fixes
added logging for view