bring log out of controller