update controllers to use helper class