add checking on loaded controller