enhanced function and style for audit log