change Smarty template cache dir
clean unused code & file