Changes for loadmodule styling

Corrected the issues in overriding styles and  issues when same module having different styles.