add logging to Controller