Fixed loop order processing
Improved the dismmay on modules tab
Factorized the module tab code.