updated log controller