remove smarty doctype class
restyle code