view and logging