add logging to controls