use a passed in controller