Add checkModule function and template, and add xinha plugin resource