added ns para to all classes / revised template detecton / revised checkbox change event