migrate from custom templates_controller to slim assets management