add log in controllers