Dynamically generate list of modules in ui