fix modtpl.main in view