added log to controllers