small refactor and add some cdn and angular for ui