changed log controller