remove smarty template

and change baser