modified to explicit understand role of router and frontname
set template by Helper, config in system/config