Refactor some logging and default web actions