refactored log view