refactor CommandView and use ClassLoader for loading resources