fix multiple UI dir issue.
some more docs details