adds in the populate controller and code