layout and region templates now in controller