Added listeners to addModules method