restructuring html module into several sub modules