add the share function view stack in templatePathStack, 
set the module path setting in main modules class, modules config no need to add
make the mode function