add log controller