refactor chartfav/chartleast and remove unnecessary tpl.html files