wrapped the controller in a proper class so that multiple instances can coexist