added instantiation of controller