refactor log view methods to class