Fixed unable to make ui submodules properly. Also pass in stylesheet dependencies when modularizing.