Changes for loadmodule styles

loadmodule/loadposition has problems in adding styles. This patch will try to address that problem in loadmodule.php