Update main.php

Connected controller to dynamic content model